<!DOCTYPE html>
<html>
<head>
    <title>运费模块</title>
    <include file='public/head'>
    <style>
        .layui-legend-size{font-size:14px !important;}
        .layui-nopadding{padding:0 !important;}
        .layui-overflow{overflow:auto;}
        .layui-nomargin{margin: 0 !important;}
        .layui-bottom{border-bottom:1px solid rgb(226, 226, 226);}
        .layui-input{height:30px !important; }
        .layui-form-search-item .layui-inline{margin-bottom: 5px;} 
        .layui-form-search-item label{margin-left: 15px;}
        .layui-table-page {padding: 7px 0px 0px;}
        .layui-field-padding{border-width: 1px;padding:0 0 5px 10px;}
        .td-head{font-weight: bold;}
    </style>
</head>
<body>
    <!-- layui-tab开始 -->
    <div class="layui-tab" lay-fliter="demo-tab">
        <div class="layui-card">
    <!-- <div class="wrap js-check-wrap" id="addFormJt"> -->

            <table class="layui-table layui-nomargin"  style="text-align:center;">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>运费模板名称</th>
                        <th>计费规则</th>
                        <th>默认首件</th>
                        <th>默认首费</th>
                        <th>默认续件</th>
                        <th>默认续费</th>
                        <th>包邮条件(计费规则为包邮有效)</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>{$data.id}</td>
                        <td>{$data.title}</td>
                        <td>
                            <if condition="$data['type'] eq 2">
                                按件数
                                <else>
                                    包邮
                                </else>
                                </elseif>
                            </if>
                        </td>
                        <td>{$data.default_num}</td>
                        <td>{$data.default_price}</td>
                        <td>{$data.continue_num}</td>
                        <td>{$data.continue_price}</td>
                        <td>满足{$data.free_shipping}件包邮</td>
                    </tr>
                </tbody>
            </table>

        <table class="layui-table layui-nomargin"  style="text-align:center;">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>配送地区</th>
                    <th>首件</th>
                    <th>首费</th>
                    <th>续件</th>
                    <th>续费</th>

                </tr>
            </thead>
            <tbody>
                <volist name="itemData" id="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.area}</td>
                        <td>{$vo.first_num}</td>
                        <td>{$vo.first_price}</td>
                        <td>{$vo.continue_num}</td>
                        <td>{$vo.continue_price}</td>
                    </tr>
                </volist>
            </tbody>

        </table>



        </div>
    </div>


<include file="public/scripts"/>
<script src="__STATIC__/js/layer/layer.js"></script>


<script type="text/javascript">

    /**
     * 获取窗口中的元素，然后返回给父级
     * @return {[type]} [description]
     */
    function callbackdata(){
        var arr = '';
        return '1'
    }    
</script>

</body>
</html>